defmodule DrabTestApp.PageController do
  @moduledoc false

  use DrabTestApp.Web, :controller
  # use Drab.Controller

  def index(conn, _params) do
    render(conn, "index.html")
  end

  def core(conn, _params) do
    conn = put_session(conn, :test_session_value1, "test session value 1")
    conn = put_session(conn, :test_session_value2, "test session value 2")
    conn = put_session(conn, :another_session, 42)
    render(conn, "core.html")
  end

  def waiter(conn, _params) do
    render(conn, "waiter.html")
  end

  def browser(conn, _params) do
    render(conn, "browser.html")
  end
end
